New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
settings: made monitors selectable in fullscreen modes #17648
settings: made monitors selectable in fullscreen modes #17648
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good already, just a few smallish comments:
It looks like you maybe forgot to push the latest fixes? |
Sorry, I was just hesitant because i forgot to test tiberian dawn, which has a different settings.yaml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Just a couple more points, then LGTM.
Can you please also squash the fixups into the first commit?
64509b6
to
e086661
Compare
Took care of the comments and squashed the commits. Reworded commit message. |
Tested on Ubuntu, works as promised 👍 I'm just wondering whether the display dropdown should be visible on single monitor setups as it serves no purpose in that case 🤔 |
We should still show it (otherwise it makes the UI code even more of a nightmare), but should disable the dropdown so its not clickable. |
e086661
to
f02068b
Compare
An integer value has been added to the graphics settings and is
pushed though the Platform interface to the Sdl2PlatformWindow.
The integer represents the display index used by SDL to identify
a display device.
The platform window hinterface has been extended to provide a
method which can be used to retrieve the available monitors.
The renderer class has been extended to give access to this
information within the settings logic class.
In the display tab of the settings menu the monitor can be
selected via a dropdown iff a non-windowed mode is selected.
"restart necessary"-logic has been updated to cater for the new
configuration option which can only be applied after restart.
The UI has been adaptet for mods/common and mods/cnc
closes #12363
Thank you for your contribution to OpenRA!
Please be aware that we do not have enough project maintainers to match the rate of contributions, so it may take several days before somebody is able to respond to your Pull Request.
You can help speed up the review process by following a few steps:
make test
andmake check
commands to check for (and fix!) any issues that are reported by our automated tests.If you need any help you can ask in the #openra IRC channel on freenode (most active during European evenings).